package com.krtech.wecard.module.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

@ApiModel(value = "com-krtech-wecard-module-sys-entity-SysDept")
@Data
@TableName(value = "sys_dept")
public class SysDept implements Serializable {
    @TableId(value = "dept_id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long deptId;

    @TableField(value = "dept_name")
    @ApiModelProperty(value = "")
    private String deptName;

    @TableField(value = "address")
    @ApiModelProperty(value = "")
    private String address;

    /**
     * 父id
     */
    @TableField(value = "pid")
    @ApiModelProperty(value = "父id")
    private Long pid;

    @TableField(value = "status")
    @ApiModelProperty(value = "")
    private Boolean status;

    @TableField(value = "sort")
    @ApiModelProperty(value = "")
    private Integer sort;

    /**
     * 部门编号
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "部门编号")
    private String code;

    /**
     * 部门完整编号
     */
    @TableField(value = "full_code")
    @ApiModelProperty(value = "部门完整编号")
    private String fullCode;

    /**
     * 学校编号
     */
    @TableField(value = "fk_school_code")
    @ApiModelProperty(value = "学校编号")
    private String fkSchoolCode;

    /**
     * 部门领导人名
     */
    @TableField(value = "dept_leader_name")
    @ApiModelProperty(value = "部门领导人名")
    private String deptLeaderName;

    /**
     * 部门领导人编号
     */
    @TableField(value = "dept_leader_code")
    @ApiModelProperty(value = "部门领导人编号")
    private String deptLeaderCode;

    /**
     *
     */
    @TableField(value = "pcode")
    @ApiModelProperty(value = "上级部门编码")
    private String pcode;

    private static final long serialVersionUID = 1L;

    public static final String COL_DEPT_ID = "dept_id";

    public static final String COL_DEPT_NAME = "dept_name";

    public static final String COL_ADDRESS = "address";

    public static final String COL_PID = "pid";

    public static final String COL_STATUS = "status";

    public static final String COL_SORT = "sort";

    public static final String COL_CODE = "code";

    public static final String COL_FULL_CODE = "full_code";

    public static final String COL_FK_SCHOOL_CODE = "fk_school_code";

    public static final String COL_DEPT_LEADER_NAME = "dept_leader_name";

    public static final String COL_DEPT_LEADER_CODE = "dept_leader_code";

    public static final String COL_PCODE = "pcode";
}